import request from "@/utils/request"
/**
 *
 * @param {string} mobile
 * @param {string} code
 * @returns Promise
 */

export const loginAPI = (username, password) => {
  return request({
    url: "/user/login",
    method: "POST",
    data: {
      username,
      password
    }
  })
}
export const UserApi = () =>
  request({
    url: "/user"
  })
